package com.yamanyar.weebill.view;

import java.io.Serializable;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;

import com.yamanyar.weebill.domain.Action;
import com.yamanyar.weebill.service.ActionService;

/**
 * Lists Actions. Created in Jun 28, 2008.
 * 
 * @author Kaan Yamanyar
 */
@org.springframework.stereotype.Component("listAction")
@Scope("request")
public class ListActions implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3156916209497186641L;
	private List<Action> actions;
	private ActionService actionService;

	@Autowired
	public ListActions(ActionService actionService) {
		this.actionService = actionService;
		actions = this.actionService.findAll();
	}

	public List<Action> getActions() {
		return actions;
	}

	public void setActions(List<Action> actions) {
		this.actions = actions;
	}

}
